package com.lzw.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 日期工具
 * @author LZW
 */
public class DateUtils {

    private DateUtils() {
    }

    public static String nowTime() {
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
    }

    public static String nowTime(String formatString) {
        SimpleDateFormat sdf = new SimpleDateFormat(formatString);
        return sdf.format(new Date());
    }

    public static long getNowTimeMillis() {
        return System.currentTimeMillis();
    }


}
